<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>bootstrap-登录</title>
    <link href="https://cdn.bootcdn.net/ajax/libs/twitter-bootstrap/3.3.4/css/bootstrap.css" rel="stylesheet">
    <link href="../style/style.css" rel="stylesheet">
</head>
<body>
<div class="login-box">
    <form class="form-horizontal">
        <div class="form-group">
            <label class="col-md-2 control-label" for="inputEmail3">用户名</label>
            <div class="col-md-6">
                <input class="form-control" id="inputEmail3" placeholder="Email" type="email">
            </div>
            <div class="col-md-4">
                <span>*</span>
            </div>
        </div>
        <div class="form-group">
            <label class="col-md-2 control-label" for="inputEmail3">密码</label>
            <div class="col-md-6">
                <input class="form-control" placeholder="Email" type="email">
            </div>
            <div class="col-md-4">
                <span>*</span>
            </div>
        </div>
    </form>
</div>
</body>
<script src="https://cdn.bootcdn.net/ajax/libs/jquery/3.6.0/jquery.js"></script>
<script>

    $.ajax({
        url: 'http://localhost:8080/json',
        method: 'post',
        dataType: 'json',
        data:{
           message:'from client'
        },
        success: function (data) {
            alert(data.message)

        }

    })

</script>
</html>
